﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CopySniffer.UI.Core;
using System.Windows.Forms;

namespace CopySniffer.UI.Views.WindowsForms
{
    public static class ViewExtender
    {
        public static void ShowMessage<TView>(this TView view, string message)
            where TView : Form
        {
            MessageBox.Show(message);
        }

        public static bool AskConfirmation<TView>(this TView view, string message)
            where TView : Form
        {
            return MessageBox.Show(message,
                "User input required",
                MessageBoxButtons.OKCancel,
                MessageBoxIcon.Question) == DialogResult.OK;
        }
    }
}
